package com.nkym.wypan.utils;/*
 * @ClassName IDutils
 * @Desc TODO
 * @Author 19637
 * @Date 2023/6/7 18:05
 * @Version 1.0
 */

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

public class IdUtils {
    private static final long workId = 1;
    private static final long dataCenterId = 1;

    private static final Snowflake snowflake = IdUtil.getSnowflake(workId, dataCenterId);


    public static long getId() {
        return snowflake.nextId();
    }


}
